package main;

import java.io.File;

import javax.imageio.ImageIO;
import javax.swing.JFrame;

/**
 * Klasa ramki sluzacej graczom do laczenia z serwerem
 * 
 * @author Maciej Krawczyk
 */
@SuppressWarnings("serial")
public class InitiationFrame extends JFrame {

	/** Konstruktor ramki */
	public InitiationFrame() {

		super("Badugi");

		this.add(new InitiationPanel(this));
		// InitiationPanel p = new InitiationPanel(this);
		// add(p);
		// p.connecting("localhost", 44);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
		setResizable(false);

		try {
			setIconImage(ImageIO.read(new File("badugi_icon.png")));
		} catch (Exception e) {
			System.out.println("A");
		}

		setLocation(400, 200);
		pack();

	}
}
